/* @(#)GSOperatorModConfirmAction.java   
 *
 * Project: GS
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   Jenny Li    2006-3-10     新增
 *
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.action;

import java.util.ArrayList;
import java.util.HashMap;

import com.hitrust.gs.bean.GSBalanceCategoryBean;
import com.hitrust.gs.bean.GSOperatorBean;
import com.hitrust.gs.business.GSBalanceCategoryProcessor;
import com.hitrust.gs.business.GSOperatorProcessor;
import com.hitrust.gs.form.GSBalanceCategoryForm;
import com.hitrust.gs.form.GSOperatorAddForm;
import com.hitrust.gs.lib.GSBaseConstants;
import com.hitrust.gs.service.GSBaseAction;
import com.hitrust.gs.service.GSBaseForm;
import com.hitrust.gs.util.exception.GSException;

/**
 * 
 */
public class GSBalanceCategoryModConfirmAction extends GSBaseAction {


    public String execute(GSBaseForm aForm) throws Exception {
    	String s = aForm.getClass().getName();
        GSBalanceCategoryForm tForm = (GSBalanceCategoryForm)aForm;
        GSBalanceCategoryBean tBean = new GSBalanceCategoryBean();
        try{
            //取得页面传入参数封装到操作员BEAN对象
        	tBean.setGs_balance_category_no(tForm.getBalanceCategoryNo());
        	tBean.setGs_balance_category_name(tForm.getBalanceCategoryName());
        	tBean.setGs_desc(tForm.getDesc());

            //操作员修改操作
        	boolean tFlag = true; 
            GSBalanceCategoryProcessor.modifyTask(tBean);
            if(tFlag){
                tForm.getRequest().setAttribute("message","结算分类修改成功");
            }
        }catch(Exception e){
            tForm.getRequest().setAttribute("action","A401301.do");
            throw e;
        }

        //设定查询模式
        aForm.getRequest().setAttribute("querymode","Q");
        aForm.getRequest().setAttribute("requery","true");
        return GSBaseConstants.FORWARD_SUCCESS;

    }

}
